While this solution works , it requires a dynamic type check at run - time , which adds overhead 當(dāng)以上解決方案運(yùn)行時(shí),加在上面的代碼要求進(jìn)行一個(gè)運(yùn)行時(shí)的動(dòng)態(tài)類(lèi)型檢查。
" presents a variety of techniques for performing dynamic type checking , reducing the run - time overhead of such tests ”顯示了執(zhí)行動(dòng)態(tài)類(lèi)型檢查、減少這種測(cè)試的運(yùn)行時(shí)開(kāi)銷(xiāo)的各種技術(shù)。